using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UwinEducation.Shared
{
    /// <summary>
    /// 密码哈希服务接口
    /// </summary>
    public interface IPasswordHasher
    {
        /// <summary>
        /// 生成密码哈希
        /// </summary>
        /// <param name="password">原始密码</param>
        /// <returns>哈希后的密码</returns>
        string HashPassword(string password);

        /// <summary>
        /// 验证密码
        /// </summary>
        /// <param name="password">原始密码</param>
        /// <param name="hashedPassword">哈希后的密码</param>
        /// <returns>是否匹配</returns>
        bool VerifyPassword(string password, string hashedPassword);
    }
}